iphoneStartTrackingHeading
Type
command
Summary
Starts tracking the heading of the device.
Syntax
iphoneStartTrackingHeading
Description
Use the iphoneStartTrackingHeading command to start tracking the current heading of the device.
The iphoneStartTrackingHeading command starts tracking the heading of the device using the digital compass.
Starting to track the heading may request the user to calibrate the magnetometer.
note
The digital compass is only supported in iOS 4.0 and later.
Examples
iphoneStartTrackingHeading
if tTrackingOn is "true" then
iphoneStartTrackingHeading
end if
Related
function: mobileCanTrackHeading, mobileCanTrackLocation, mobileCurrentHeading, iphoneHeadingCalibrationTimeout
message: trackingError, headingChanged
command: iphoneStopTrackingHeading, iphoneSetHeadingCalibrationTimeout
Compatibility and Support
Introduced
LiveCode 4.6.1
OS
ios
Platforms
mobile